// 资产清单管理列表
var assetslColumns = [{
        id: 'a1',
        title: '资产类目',
        type: 'string',
        width: 75,
        columnClass: 'text-center',
    }, {
        id: 'a2',
        title: '资产类别',
        type: 'string',
        width: 75,
        columnClass: 'text-center',
    }, {
        id: 'a3',
        title: '资产编号',
        type: 'string',
        width: 150,
        columnClass: 'text-center',
    }, {
        id: 'a4',
        title: '放置地',
        type: 'string',
        width: 75,
        columnClass: 'text-center',
    }, {
        id: 'a5',
        title: '状态',
        type: 'string',
        width: 75,
        columnClass: 'text-center',
    }, {
        id: 'a6',
        title: '归属人',
        type: 'string',
        width: 75,
        columnClass: 'text-center',
    }, {
        id: 'a7',
        title: '归属项目',
        type: 'string',
        width: 150,
        columnClass: 'text-center',
    }, {
        id: 'a8',
        title: '资产描述',
        type: 'string',
        columnClass: 'text-left',
    },
    {
        id: 'operation',
        title: '操作',
        width: 60,
        type: 'string',
        columnClass: 'text-center',
        resolution: function (value, record, column, grid, dataNo, columnNo) {
            var content = '';
            // content += '<a class="btn btn-xs btn-primary" href="#/selAssetsl"><i class="icon-eye-open"></i>  查看</a>';
            // content += '  ';
            content += '<a class="btn btn-xs btn-success" href="#/edAssetsl"><i class="fa fa-edit"></i>  待办</a>';
            return content;
        }
    },
];
var assetslOption = {
    lang: 'zh-cn',
    ajaxLoad: false,
    // loadURL:'url',
    exportFileName: '资产清单管理列表',
    datas: [{
        a1: '设备',
        a2: '硬件',
        a3: 'NJ201801071254',
        a4: '南京',
        a5: '闲置',
        a6: '张三测试',
        a7: '项目名称测试数据',
        a8: '华硕笔记本 8G内存*2 7代i5CPU GTX1050Ti'
    }],
    columns: assetslColumns,
    gridContainer: 'assetslContainer',
    toolbarContainer: 'assetslToolBarContainer',
    tools: '',
    // check: true,
    // checkWidth: 20,
    pageSize: 10,
    pageSizeLimit: [10, 15, 20]
};
var assetslGrid = $.fn.dlshouwen.grid.init(assetslOption);
$(function () {
    assetslGrid.load();
});


// 资产信息记录
var astlogColumns = [{
    id: 'doTime',
    title: '操作时间',
    width: 160,
    type: 'string',
    columnClass: 'text-center',
}, {
    id: 'dohistory',
    title: '操作记录',
    type: 'string',
    columnClass: 'text-left',
}, ];
var astlogOption = {
    lang: 'zh-cn',
    ajaxLoad: false,
    // loadURL:'url',
    exportFileName: '资产信息记录',
    datas: [{
        doTime: '9999-99-99 24:00',
        dohistory: '资产管理员张三，转移资产给李四，未确认接收',
    }, ],
    columns: astlogColumns,
    gridContainer: 'astlogContainer',
    toolbarContainer: 'astlogToolBarContainer',
    tools: '',
    pageSize: 10,
    pageSizeLimit: [10, 15, 20]
};
var astlogGrid = $.fn.dlshouwen.grid.init(astlogOption);
$(function () {
    astlogGrid.load();
});